package form.ui.component.Select {
	import flash.text.TextField;
	import flash.text.TextFormat;

	public class Header extends TextField {
		public static const FONT_SIZE:int = 11;
		public static const FONT_COLOR:int = 0x4e8bb8;
		public static const TEXT_INDENT:int = 3;
		public static const ITALIC:Boolean = false;		
		public static const BOLD:Boolean = true;
		
		public function Header() {
			super();
			
			Header.defineHeader(this);
		}
		
		protected static function defineHeader(header:Header):void {
			header.mouseEnabled = false;
			header.selectable = false;
			
			header.width = Option.WIDTH;
			header.height = Option.HEIGHT;
			header.defaultTextFormat = Header.textFormat;
			
			header.textColor = Header.FONT_COLOR;
			header.background = false;
		}
		
		protected static function get textFormat():TextFormat {
			var format:TextFormat = new TextFormat();
			
			format.font = Option.FONT_FAMILY;
			format.size = Header.FONT_SIZE;
			format.bold = Header.BOLD;
			format.indent = Header.TEXT_INDENT;
			format.italic = Header.ITALIC;
			
			return format;
		}
	}
}